package com.njym.java.security.app.biz;

import com.njym.java.security.app.entity.Questiontbl;
import com.njym.java.security.app.entity.QuestiontblVo;
import com.njym.java.security.app.mapper.QuestiontblMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2020-03-10 14:13:20
 */
@Service
public class QuestiontblBiz extends BaseBiz<QuestiontblMapper,Questiontbl> {

    /**
     * 通过问卷编号查询问卷对应的问题列表以及答案列表
     * @param code
     * @return
     */
    public List<QuestiontblVo> queryList(String code,Integer typetblId){
        return mapper.getQuestionAndAnswert(code,typetblId);
    }
}